package com.test.BlockingQueueTest;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by yang on 17/4/26.
 */
public class StuRegister {

    public static void RegisterStuCount(String mobile) throws Exception {
        String path  = Basic.stuApiRoot + "/user/auth/register-create";
        String baseJson = "{\"username\":\"1634新新新\",\"source\":\"androidRCStudent\",\"transaction\":\"register\",\"token\":\"\",\"deviceType\":\"MI_4LTE\",\"deviceVersion\":\"4.4.4\",\"code\":\"1128\",\"password\":\"123456\",\"channel\":\"Knowbox\",\"deviceId\":\"867323021373194\",\"mobile\":\"18611111141\",\"version\":305}";
        JSONObject requestJson = new JSONObject(baseJson);
        requestJson.put("mobile", mobile);
        requestJson.put("username", "0503新" );
        requestJson.put("code", "1039");
        String param = "data=" + requestJson;
        ConnectionTest.sendPost(path,param);
    }





}
